// <copyright file="PlayerIndexEventArgs.cs" company="SpaceRock Team Members">
// Project: SpaceRock
// File: PlayerIndexEventArgs.cs (1,33 KB, 46 lines)
// Creation date: 2010-05-28 13:53
// Last modified: 2010-05-29 00:07
// </copyright>

#region Using directives
using Microsoft.Xna.Framework;
using System;
#endregion

namespace XnaGameFramework.GameStateManagement
{
    /// <summary>
    /// Custom event argument which includes the index of the player who
    /// triggered the event. This is used by the MenuEntry.Selected event.
    /// </summary>
    class PlayerIndexEventArgs : EventArgs
    {
        /// <summary>
        /// Constructor.
        /// </summary6>
        public PlayerIndexEventArgs(PlayerIndex playerIndex)
        {
            this.PlayerIndex = playerIndex;
        } // PlayerIndexEventArgs

        /// <summary>
        /// Gets the index of the player who triggered this event.
        /// </summary>
        public PlayerIndex PlayerIndex { get; private set; } // PlayerIndex
    } // class PlayerIndexEventArgs
} // namespace XnaGameFramework.GameStateManagement
